package com.reshare.mapper;

import com.reshare.base.BaseMapper;
import com.reshare.bean.Category;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

public interface CategoryMapper extends BaseMapper<Category,Integer> {

    int insert(Category record);

    int updateByPrimaryKey(Category record);

    Category selectCategoryByName(String catename);

    //@MapKey("")
    List<Category> selectAllCategory();
    Category findById(Integer id);
}